/* 响应式布局 */
.app-container {
  max-width: 100%;
  height: 100vh;
  padding: 20px;
  background-color: #f8f9fa;
}

.auth-card {
  max-width: 500px;
  margin: 20px auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px);
}

.message-area {
  flex: 1;
  overflow-y: auto;
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.message-item {
  margin-bottom: 10px;
  border: none;
  border-radius: 12px;
  background-color: #f1f3f5;
}

.own-message {
  background-color: #e3f2fd;
  margin-left: auto;
  max-width: 80%;
}

.message-header {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.message-content {
  word-break: break-word;
}

.message-input {
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .auth-card {
    margin: 10px;
  }
  
  .own-message {
    max-width: 100%;
  }
}
